package cn.ecut.service.impl;


import cn.ecut.dao.YuangongDao;
import cn.ecut.model.*;
import cn.ecut.service.YuangongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YuangongServiceimpl implements YuangongService {

    @Autowired
    private YuangongDao yuangongDao;
    @Override
    public String selectMimaByYuangongHao(String yuangongHao){
        return yuangongDao.selectMimaByYuangongHao(yuangongHao);
    }
    @Override
    public Integer updateMimaByYuangongHao(Yuangong yuangong) {
        return yuangongDao.updateMimaByYuangongHao(yuangong);
    }
    @Override
    public Yuangong selectAllByYuangongHao(String yuangongHao){
        return yuangongDao.selectAllByYuangongHao(yuangongHao);
    }
    @Override
    public Integer updateAllByYuangongHao(Yuangong yuangong){
        return yuangongDao.updateAllByYuangongHao(yuangong);
    }

    @Override
    public List<Xiangmu> selectAllxiangmu() {
        return yuangongDao.selectAllxiangmu();
    }

    @Override
    public List<Loudong> selectAllloudongByxiangmubianma(String xiangmubianma) {
        return yuangongDao.selectAllloudongByxiangmubianma(xiangmubianma);
    }

    @Override
    public List<Taofang> selectAlltaofangByloudongbianma(String loudongbianma) {
        return yuangongDao.selectAlltaofangByloudongbianma(loudongbianma);
    }

    @Override
    public List<Fangjian> selectAllfangjianBytaofangbianma(String taofangbianma) {
        return yuangongDao.selectAllfangjianBytaofangbianma(taofangbianma);
    }

    @Override
    public List<Puwei> selectAllpuweiByfangjianbianma(String fangjianbianma) {
        return yuangongDao.selectAllpuweiByfangjianbianma(fangjianbianma);
    }

}
